{% load filters %} 
 <table width="100%">
                	<thead>
                    	<tr>
                    		<th>留言时间</th>
                        	<th style="width:45%">留言人名称</th>
                            <th>回复</th>
							<th>公开</th>
							<th>操作</th>
                            <th><input  type="checkbox"  onclick='OnCheckboxall(this)' id="checkboxall"></th>
                        </tr>
                    </thead>
                    <tbody>
                    	
						{% for  info in Model.list  %}
                    	<tr>
                        	<td>{{info.ApplyTime|date:"Y-m-d"}}</td>
                            <td style="width:45%">{{info.ApplyUserName}}</td>
							<td >
								{% ifequal info.State 0 %}
								<img src="/site_media/admin/img/icons/icon_unapprove.png" alt="Approve">
								{% else %}
								<img src="/site_media/admin/img/icons/icon_approve.png" alt="Approve">
								{% endifequal %}
							</td>
							<td >
								
								{% ifequal info.IsOpen 0 %}
								<img src="/site_media/admin/img/icons/icon_unapprove.png" alt="Approve">
								{% else %}
								<img src="/site_media/admin/img/icons/icon_approve.png" alt="Approve">
								{% endifequal %}
								
							</td>
                            <td>
                            	<a target="_blank" href="/AdminMain/Board/View/?MessageId={{info.MessageId}}"  alt="留言详细" >详细</a>
                            	<a  target="_blank" href="/AdminMain/Board/Edit/?MessageId={{info.MessageId}}" alt="编辑留言" >编辑</a>
                                <a href="#" dataType="confimsubmit" datareturn="datareturn=function(){previousSubmit('formboard',1)}"   dataval="/AdminMain/Board/DoDel/?MessageId={{info.MessageId}}" dataTip="你确定[删除]该留言?" >删除</a>
                            </td>
                            <td><input type="checkbox" value="" AllPost="{{info.MessageId}}" name="checkall" ></td>
                        </tr>
                       {% endfor  %}
                    </tbody>
                </table>

<div class="extrabottom">
                	
                    <div class="bulkactions">
                    	<select id="selectBatch">
                        	<option value="-1">请选择是否公开</option>
							<option value="1">公开</option>
							<option value="0">不公开</option>
                        </select>
                        <input type="button" value="批量应用" onclick="OnAllPost()" class="btn">
                    </div>
                </div>
				<script>
					 $(InfoPage)
			    </script>
			{{Model|page:"formboard"}}
				
				